<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>开始考试</title>
    <meta charset="utf-8"/>
    <script  src='../../js/core.js'></script>
    <link type="text/css" rel='stylesheet' href="../../css/info.css"/>
</head>
<body>
<%
           /*
           *验证权限rjsp se
           *data 2011-12-01
           *增加了userId
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int studentId = Integer.parseInt(userId);
						
			if (flag != "student"|| flag==null )
			{
				%>
            <script language="javascript">
				     alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
            <%
				
			}else{
				Student student = new Student();
				StudentControl sc = new StudentControl();
				student = sc.GetStudent(studentId);
				//out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
			}
           %>
<div id="page">
    <header class="header">
        <p class="title">欢迎您注册CAT测评系统</p>
    </header>
    <section class="main">
        <form action="problem1.jsp" class="form1">
        	<p>请选择科目:&nbsp;&nbsp;
          <select class='w340' name="logType" class="btn-menu">
        		<option value="Student" selected="selected">数学</option>
      		    <option value="Admin">英语</option>
                <option value="Admin">物理</option>
	      </select></p>
  		<p>请选择年级:&nbsp;&nbsp;
          <select class='w340' name="logType2" class="btn-menu">
            <option value="Student" selected="selected">七年级</option>
            <option value="Admin">八年级</option>
            <option value="Admin">九年级</option>
          </select></p>
          <p ><input type="button" onclick="javascript:window.history.go(-1)" class="btns fl br3" value="返   回"/>
          	 <input type="submit" class="btns fr br3 mr100" value="准备好了"/>
          </p>
          
        </form>
    </section>
    <footer class="footer"><small>© 2012 Nenu</small></footer>
 </div>   
</html>
